package com.jemmyee.shop.entity;

// default package

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @Description:红包类型
 * @author:jemmyee@gmail.com
 * @date:2011-4-1
 * @version:v1.0
 */
@Entity
@Table(name = "so_bonus_type")
public class BonusType implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private Double money;
	private Short sendType;
	private Double minAmount;
	private Double maxAmount;
	private Date sendStartDate;
	private Date sendEndDate;
	private Date useStartDate;
	private Date useEndDate;
	private Double minGoodsAmount;

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name", length = 60)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "money", precision = 10)
	public Double getMoney() {
		return this.money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	@Column(name = "send_type")
	public Short getSendType() {
		return this.sendType;
	}

	public void setSendType(Short sendType) {
		this.sendType = sendType;
	}

	@Column(name = "min_amount", precision = 10)
	public Double getMinAmount() {
		return this.minAmount;
	}

	public void setMinAmount(Double minAmount) {
		this.minAmount = minAmount;
	}

	@Column(name = "max_amount", precision = 10)
	public Double getMaxAmount() {
		return this.maxAmount;
	}

	public void setMaxAmount(Double maxAmount) {
		this.maxAmount = maxAmount;
	}

	@Column(name = "send_start_date", length = 0)
	public Date getSendStartDate() {
		return this.sendStartDate;
	}

	public void setSendStartDate(Date sendStartDate) {
		this.sendStartDate = sendStartDate;
	}

	@Column(name = "send_end_date", length = 0)
	public Date getSendEndDate() {
		return this.sendEndDate;
	}

	public void setSendEndDate(Date sendEndDate) {
		this.sendEndDate = sendEndDate;
	}

	@Column(name = "use_start_date", length = 0)
	public Date getUseStartDate() {
		return this.useStartDate;
	}

	public void setUseStartDate(Date useStartDate) {
		this.useStartDate = useStartDate;
	}

	@Column(name = "use_end_date", length = 0)
	public Date getUseEndDate() {
		return this.useEndDate;
	}

	public void setUseEndDate(Date useEndDate) {
		this.useEndDate = useEndDate;
	}

	@Column(name = "min_goods_amount", precision = 10)
	public Double getMinGoodsAmount() {
		return this.minGoodsAmount;
	}

	public void setMinGoodsAmount(Double minGoodsAmount) {
		this.minGoodsAmount = minGoodsAmount;
	}

}